//
//  ExampleViewModel.h
//  NekaPrice
//
//  Created by yu on 2018/6/25.
//  Copyright © 2018年 ma c. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ExampleModel.h"
#import "CategoryModel.h"

@interface ExampleViewModel : NSObject

@property (nonatomic, strong)NSMutableArray *allExampleList;
@property (nonatomic, strong)NSMutableArray *showExampleList;
@property (nonatomic, strong)NSMutableArray *searchResultList;
@property (nonatomic, assign)NSInteger currentPage;
@property (nonatomic, assign)NSInteger allPages;
@property (nonatomic, assign)NSInteger perPage;

//分类列表
@property (nonatomic, strong)NSMutableArray *categoryList;


- (void)requestExampleList:(void (^)(void))finished;
- (void)makeShowExampleList:(void (^)(BOOL))finished;



//按分类url请求
- (void)requestExampleListByURL:(NSString *)url withBlock:(void (^)(void))finished;
//设置分页数据
- (void)setupPageCount:(NSArray *)list;


@end
